/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package es.aurea.menu.creator.sources;

import es.aurea.menu.creator.jaxbfiles.MenuElement;

/**
 *
 * @author zarius
 */
public class Element extends MenuElement {

    private MenuElement father;

    public Element(MenuElement father, MenuElement creator){
        this.directLink=creator.isDirectLink();
        this.groups=creator.getGroups();
        this.link=creator.getLink();
        this.name=creator.getName();
        this.subElement=creator.getSubElement();
        this.father=father;
    }

    public MenuElement getFather() {
        return father;
    }

}
